#%RAML 1.0

    title: Party API
    baseUri: http://localhost:8081
    version: v1
    
    documentation:
      - title: mod-party API
        content: This documents the API calls that can be made to post party for users, and to get them
    
    types:
      notifyTemplate: !include notifyTemplate.json
      notifyTemplateCollection: !include notifyTemplateCollection.json
      errors: !include raml-util/schemas/errors.schema
    
    traits:
      validate: !include raml-util/traits/validation.raml
      language: !include raml-util/traits/language.raml
      pageable:  !include raml-util/traits/pageable.raml
      searchable: !include raml-util/traits/searchable.raml
    
    resourceTypes:
      collection: !include raml-util/rtypes/collection.raml
      collection-item: !include raml-util/rtypes/item-collection.raml
    
    /party/notify_template:
      displayName: notifyTemplate
      description: 活动模块的通知模板
      type:
        collection:
          schemaCollection: notifyTemplateCollection
          schemaItem: notifyTemplate
          exampleCollection: !include examples/notifyTemplateCollection.sample
          exampleItem: !include examples/notifyTemplate.sample
    
      post:
        is: [validate]

      get:
        is: [
          searchable: {description: "根据搜索条件查询活动模块的通知模板", example: "query=(id <> 0)"},
          pageable,
          validate
        ]

      /{id}:
          displayName: notifyTemplate
          description: 根据id 获得,修改,删除一个模板记录
          type:
            collection-item:
              schema: notifyTemplate
              exampleItem: !include examples/notifyTemplate.sample
    